-- GENERATED SPELL FOR [Artifact Seeker] --


function spell0_19852(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(11981,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19852', 3000, 1)
end

function spell1_19852(pUnit, Event) --@Spell Lock,n/a--
pUnit:FullCastSpellOnTarget(30849,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19852', 4261, 1)
end

function Sorts_19852(pUnit, Event)
local choix_sorts_19852 = math.random(0, 1)
if choix_sorts_19852 == 0 then
pUnit:RegisterEvent('spell0_19852', 1, 1)
end
if choix_sorts_19852 == 1 then
pUnit:RegisterEvent('spell1_19852', 1, 1)
end
end

function mob19852_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19852', math.random(1500, 3000), 1)
end

function mob19852_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19852_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19852_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19852, 1, 'mob19852_Action')
RegisterUnitEvent(19852, 2, 'mob19852_Leave')
RegisterUnitEvent(19852, 3, 'mob19852_Kill')
RegisterUnitEvent(19852, 4, 'mob19852_Die')
